package Homework03;

import javax.swing.*;

public class SIMCard {
    private KindEnum kindenum;
    private long num;
    private String ID;
    private String password;
    private int money;
    private int callTime;
    private int streamflow;

    public SIMCard() {
    }

    public SIMCard(KindEnum kindenum, long num, String ID, String password, int money, int callTime, int streamflow) {
        this.kindenum=kindenum;
        this.num = num;
        this.ID=ID;
        this.password= password;
        this.money=money;
        this.callTime=callTime;
        this.streamflow=streamflow;
    }

    public long getNum() {
        return num;
    }

    public void setNum(long num) {
        this.num = num;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getStreamflow() {
        return streamflow;
    }

    public void setStreamflow(int streamflow) {
        this.streamflow = streamflow;
    }
    public void show(){
        System.out.println("卡号为"+num+"的用户"+ID+",当前余额是："+money);
    }
}
